package cn.lee.test.common.base.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

/**
 * @author : lichl(李承霖)
 * create: 2021/4/15 11:10
 * 定义可供扩展自定义查询的Repository
 */
@NoRepositoryBean
public interface MyBaseJpaRepository<T, ID> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T>{

//  @Transactional
//  @Lock(LockModeType.PESSIMISTIC_READ)
//  List<T> getByStatus(String status);

}
